From 7a65b19d09e2b591c9c9bb8ccf3b83767c586660 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 4 Aug 2008 16:45:11 +0100 Subject: [PATCH] mini-os: Fix 32bit compilation of fs-front.c Reported-by: Trolle Selander Signed-off-by: Samuel Thibault --- extras/mini-os/fs-front.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/mini-os/fs-front.c b/extras/mini-os/fs-front.c index a14699f014..c81f1a66c9 100644 --- a/extras/mini-os/fs-front.c +++ b/extras/mini-os/fs-front.c @@ -818,14 +818,14 @@ void *alloc_buffer_page(struct fs_request *req, domid_t domid, grant_ref_t *gref page = (void *)alloc_page(); *gref = gnttab_grant_access(domid, virt_to_mfn(page), 0); req->private1 = page; - req->private2 = (void *)(uint64_t)(*gref); + req->private2 = (void *)(uintptr_t)(*gref); return page; } void free_buffer_page(struct fs_request *req) { - gnttab_end_access((grant_ref_t)(uint64_t)req->private2); + gnttab_end_access((grant_ref_t)(uintptr_t)req->private2); free_page(req->private1); } -- 2.30.2